package com.wg.msproductgz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
@Data
@TableName("product")
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "商品表")
public class Product implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "商品编号")
    private Integer id;

    @Schema(description = "店铺ID")
    private Integer shopId;

    @Schema(description = "商品名称")
    private String name;

    @Schema(description = "商品主图")
    private String mainImg;

    @Schema(description = "商品参考价")
    private Double priceBefore;

    @Schema(description = "商品现价")
    private Double priceAfter;

    @TableField("status")
    @Schema(description = "商品状态")
    private String status;

    @Schema(description = "创建时间")
    private String createTime;

    @Schema(description = "商品类型")
    private String type;
    @Schema(description = "图文详细文字")
    private String text;
    @Schema(description = "图文详细图")
    private String img;
    @Schema(description = "已售数量")
    private Integer buyEd;
    @Schema(description = "库存数量")
    private Integer count;
}
